SaveData Method

Syntax

Context.Session.SaveData as L (Key as C, Value as A)

Arguments

L

Return type

Key as C

The key of the session-state variable to be retrieved.

Value as A

The value of the session-state variable. Although type A, any type, is allowed it is deprecated for the value. The value should be of type C in order to support the most types of session-state providers under IIS.

Description

Sets the value of a key in the session-state collection.

Discussion

Context.Session.SaveData() sets the value of a key in the session-state collection. Check Context.Session.CallResult.Success before using the return value.